package com.itheima.unusualDemo;

public class Test2 {
    public static void main(String[] args) {
        try {
            int[] arr = {1,2,3,4,5};
            System.out.println(arr[5]);
        } catch (ArrayIndexOutOfBoundsException e) {
            System.out.println("警告,索引越界!!!");
        }
    }
}
